home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
PET
/
S-Super PET
/
(s)tk.d64
/
TAB.ASM
< prev
next >
Wrap
Assembly Source File
|
2009-01-18
|
1KB
|
41 lines
;tab.asm. Three different tab settings from menu. Loads in bank 15.
xref tabset_, getchar_, printf_
service_ equ $32
kyputb_ equ $dd82
ldd #instruct ; load address of instruction string
jsr printf_
loop
jsr kyputb_ ; read character from keyboard (No RETURN)
cmpb #'p ; and stay in loop until you get 1 of 3
if eq ; acceptable characters.
ldd #pstops
jmp done
endif
cmpb #'d ; want document tabstops?
if eq
ldd #dstops
jmp done
endif
cmpb #'w
if eq
ldd #sstops
jmp done
endif
endloop
done jsr tabset_ ; go to subroutine to set them
clr service_ ; return to menu
rts
instruct fcc "Enter 'p' for program tabs; 'd' for document tabs; "
fcc "'w' for Waterloo tabs.%n"
fcb 0
sstops fdb 01,09,17,25,33,41,49,57,65,73 ; Standard Waterloo stops
pstops fdb 07,09,11,13,15,17,19,41,61,80 ; Program-writing stops
dstops fdb 01,05,10,15,20,25,30,41,61,80 ; Document stops
end ; tabs are set at screen columns listed above.